package org.hzz.coupon.infrastructure.dao.mapper.user.coupon;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.hzz.coupon.infrastructure.dao.model.user.coupon.UserCoupon;
import org.hzz.coupon.infrastructure.dao.model.user.coupon.UserCouponExample;

import java.util.List;

@Mapper
public interface UserCouponMapper {
    long countByExample(UserCouponExample example);

    int deleteByExample(UserCouponExample example);

    int deleteByPrimaryKey(Long id);

    int insert(UserCoupon row);

    int insertSelective(UserCoupon row);

    List<UserCoupon> selectByExample(UserCouponExample example);

    UserCoupon selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("row") UserCoupon row, @Param("example") UserCouponExample example);

    int updateByExample(@Param("row") UserCoupon row, @Param("example") UserCouponExample example);

    int updateByPrimaryKeySelective(UserCoupon row);

    int updateByPrimaryKey(UserCoupon row);
}